{% extends "base.html" %}
{% block title %}借阅管理{% endblock %}
{% block body %}
<div>
    <h2>可借阅的书籍 </h2>
<ul>
{% for book in available_books %}
<li>{{ book.title }} - <form action="{{ url_for('borrow_book',book_id=book.id) }}" method="post" style="display:inline;">
    <button type="submit">借阅 </button>
</form></li>
{% endfor %}
</ul>
</div>
{% endblock %}